package puziran.sofa.util;

import java.util.Locale;
import java.util.MissingResourceException;
import java.util.ResourceBundle;

public class ReadPropertiesFile {
	public static String getString(String bundleName, String key) {
		ResourceBundle RESOURCE_BUNDLE = ResourceBundle.getBundle(bundleName,
				Locale.getDefault());
		try {
			return RESOURCE_BUNDLE.getString(key);
		} catch (MissingResourceException e) {
		}
		return '!' + key + '!';
	}
}